.class public Lcom/instagram/android/c2dm/h;
.super Ljava/lang/Object;
.source "PushMediaFetcher.java"


# direct methods
.method static a(Landroid/content/Context;Lcom/instagram/android/c2dm/d;Landroid/os/Handler;)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 43
    invoke-static {p1}, Lcom/instagram/android/c2dm/h;->b(Lcom/instagram/android/c2dm/d;)Z

    move-result v1

    .line 44
    invoke-static {p1}, Lcom/instagram/android/c2dm/h;->c(Lcom/instagram/android/c2dm/d;)Z

    move-result v2

    .line 46
    if-eqz v1, :cond_1

    invoke-virtual {p1}, Lcom/instagram/android/c2dm/d;->g()Ljava/lang/String;

    move-result-object v1

    .line 48
    :goto_0
    if-eqz v2, :cond_0

    .line 49
    invoke-virtual {p1}, Lcom/instagram/android/c2dm/d;->f()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/instagram/n/e;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 55
    :cond_0
    new-instance v2, Lcom/instagram/android/c2dm/i;

    invoke-direct {v2, p1}, Lcom/instagram/android/c2dm/i;-><init>(Lcom/instagram/android/c2dm/d;)V

    .line 65
    new-instance v3, Lcom/instagram/android/c2dm/j;

    invoke-direct {v3, v2, v0, v1}, Lcom/instagram/android/c2dm/j;-><init>(Lcom/instagram/f/b/k;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 75
    return-void

    :cond_1
    move-object v1, v0

    .line 46
    goto :goto_0
.end method

.method private static a()Z
    .locals 2

    .prologue
    .line 21
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xf

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static a(Lcom/instagram/android/c2dm/d;)Z
    .locals 1
    .parameter

    .prologue
    .line 37
    invoke-static {p0}, Lcom/instagram/android/c2dm/h;->b(Lcom/instagram/android/c2dm/d;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {p0}, Lcom/instagram/android/c2dm/h;->c(Lcom/instagram/android/c2dm/d;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static b(Lcom/instagram/android/c2dm/d;)Z
    .locals 1
    .parameter

    .prologue
    .line 29
    invoke-static {}, Lcom/instagram/android/c2dm/h;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/c2dm/d;->j()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static c(Lcom/instagram/android/c2dm/d;)Z
    .locals 1
    .parameter

    .prologue
    .line 33
    invoke-virtual {p0}, Lcom/instagram/android/c2dm/d;->i()Z

    move-result v0

    return v0
.end method
